package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 发送私信dto
 */
@Data
@ApiModel("发送私信dto")
public class SendTextPrivateLetterDTO {

    @ApiModelProperty("目标用户id")
    @NotNull(message = "目标用户id不可为空")
    @Min(value = 1,message = "非法的用户id")
    private Integer targetUserId;

    @ApiModelProperty("私信内容")
    @NotBlank(message = "发送内容不能为空")
    private String content;

}
